/*
 * @author boss archetype
 * <p>
 * 枚举定义
 */
package com.hopes.bizz.basic.common.constant.enums;

import com.hopes.bizz.basic.common.api.feign.RemoteParkBasicDictService;
import com.hopes.boss.admin.api.resolver.EnumResolver;
import com.hopes.boss.admin.api.resolver.IDict;

public enum ParkBasicModDictEnum implements EnumResolver<RemoteParkBasicDictService> {
    // 第三方单位
    third_unit("listThirdUnitAsDict"),
    // 第三方人员信息
    third_employee("listThirdEmployeeAsDict"),
    /**
     * 危险源
     */
    hazard_source("listHazardSourceAsDict"),

    /**
     * 危险源监控因子
     */
    monitor_factor("listMonitorFactorAsDict"),

    /**
     * 危化品
     */
    chemical_sds("listChemicalSdsAsDict"),

    /**
     * 象形图编码
     */
    pictogram_code("listPictogramCodeAsDict"),

    /**
     * 存储场所
     */
    storage_info("listStorageInfoAsDict"),
    /**
     * 班次纪录
     */
    shift_work_info("listWorkInfoAsDict"),
    /**
     * 值班人员
     */
    shift_employee_info("listShiftEmployeeAsDict"),

    ;

    private final String methodName;

    private Class<? extends IDict> remoteClass = RemoteParkBasicDictService.class;

    ParkBasicModDictEnum(String methodName) {
        this.methodName = methodName;
    }

    ParkBasicModDictEnum(String methodName, Class<? extends IDict> remoteClass) {
        this.methodName = methodName;
        this.remoteClass = remoteClass;
    }

    @Override
    public String getType() {
        return this.name();
    }

    @Override
    public String getMethodName() {
        return methodName;
    }

    @Override
    public Class<? extends IDict> getRemoteClass() {
        return remoteClass;
    }
}
